import request from '@/utils/request'

export function listProgress(query) {
  return request({ url: '/jiaxiao/progress/list', method: 'get', params: query })
}

export function getProgress(id) {
  return request({ url: '/jiaxiao/progress/' + id, method: 'get' })
}

export function addProgress(data) {
  return request({ url: '/jiaxiao/progress', method: 'post', data })
}

export function updateProgress(data) {
  return request({ url: '/jiaxiao/progress', method: 'put', data })
}

export function delProgress(ids) {
  return request({ url: '/jiaxiao/progress/' + ids, method: 'delete' })
}

export function addHours(id, delta) {
  return request({ url: `/jiaxiao/progress/addHours/${id}`, method: 'put', params: { delta } })
}


